from django.conf.urls.defaults import *
from codeflow import settings
urlpatterns = patterns(
    '',
                       
    # Example:
    # (r'^codeflow/', include('codeflow.foo.urls')),

    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^$', 'django.views.generic.simple.direct_to_template',
     {'template': 'codeflow/home.html'}),
    (r'^review/', include('codeflow.reviewer.urls')),
    (r'^browse/', include('codeflow.browser.urls')),
    (r'^accounts/login/', 'django.contrib.auth.views.login'),
    (r'^accounts/logout/', 'django.contrib.auth.views.logout'),
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
     {'document_root' : settings.PROJECT_ROOT+'/media'}),
                       
)
